﻿using System;
using System.Collections.Generic;
using Sharp.Infrastructure.Interfaces;

namespace Sharp.DataTransferObject.CMS
{
    /// <summary>
    /// 采集
    /// </summary>
    public partial class GatherDTO : IDTO
    {
        public GatherDTO()
        {
            this.CheckInTime = DateTime.Now;
        }
        public Guid Id { get; set; }
        public string Name { get; set; }
        public string StartUrl { get; set; }
        public string CategoryArea { get; set; }
        public string ContentTitle { get; set; }
        public string UpdateTime { get; set; }
        public string ComeFrom { get; set; }
        public string Author { get; set; }
        public string Content { get; set; }
        public string ContentPageUrl { get; set; }
        public string FullArticleUrl { get; set; }
        public string CategoryPageNextUrl { get; set; }
        public string ContentPageNextUrl { get; set; }
        public string IgnoreUrl { get; set; }
        public string Filter { get; set; }
        public string Replace { get; set; }
        public bool CanDownImg { get; set; }
 
        public System.DateTime? LastWork { get; set; }
        public bool IsChecked { get; set; }
        public bool CanDrawWaterMark { get; set; }
        public bool IsExpert { get; set; }
        public Guid? ParentId { get; set; }
        public bool IsDisabled { get; set; }
        public System.DateTime CheckInTime { get; set; }
        public string Encoding { get; set; }
        /// <summary>
        /// 采集站内资源
        /// </summary>
        public bool Instation { get; set; }
        /// <summary>
        /// 是否蜘蛛爬虫
        /// </summary>
        public int IsSpider { get; set; }
        /// <summary>
        /// 符合内容页url规律的正则表达式
        /// </summary>
        public string ContentPageRule { get; set; }
        /// <summary>
        /// 爬行哪几个域名下的url
        /// </summary>
        public string SpiderDomains { get; set; }
        public ICollection<GatherDTO> Children { get; set; }

        public int ArticleGatherCount { get; set; }
    }
}